package cn.meng.base.service;

import cn.meng.base.mapper.PermissionMapper;
import cn.meng.base.vo.PermissionVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionServiceImpl implements PermissionService{

    @Autowired
    PermissionMapper permissionMapper;

    @Override
    @Cacheable(value = "Permission",key = "#pk_role")
    public List<PermissionVo> queryPermission(String pk_role) {
        return permissionMapper.queryPermission(pk_role);
    }
}
